package org.robustcoupe.task.example.resources;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.robustcoupe.task.TaskEvent;
import org.robustcoupe.task.TaskResultType;

public class TaskEventHandler implements TaskEvent {
  private static final Log LOG = LogFactory.getLog(TaskEventHandler.class);
  
  public void taskCompleted(TaskResultType result) {
    LOG.info(TaskEvent.LOG_PREFIX + "Result is " + result);
  }

  public void taskStarted() {
    LOG.info(TaskEvent.LOG_PREFIX + "Task is started. "
        + System.currentTimeMillis());
  }
}
